import axios from '../../network/axios'

/* 
    库存表
*/

//获取品牌数据的接口
export const getBrandDataApi = () => {
  return axios({
    method: 'GET',
    url: '/branded/list'
  })
}
// 获取仓库数据的接口
export const get_chuang_shang_DataApi = () => {
  return axios({
    method: 'GET',
    url: '/warehouse/warehouse'
  })
}

// 获取季度的数据
export const get_ji_du_DataApi = () => {
  return axios({
    method: 'GET',
    url: '/quarter/quarter'
  })
}

// 获取大类的数据
export const get_big_class_DataApi = () => {
  return axios({
    method: 'GET',
    url: '/commodity-type/commodityType'
  })
}

// 获取客户的数据
export const get_ke_hu_DataApi = () => {
  return axios({
    method: 'GET',
    url: '/customer/list'
  })
}
// 获取业务的数据接口
export const get_ye_wu_DataApi = () => {
  return axios({
    method: 'GET',
    url: '/personnel/list'
  })
}
// 获取款号的数据接口
export const get_kuan_hao_DataApi = (data) => {
  return axios({
    method: 'POST',
    url: '/kinds-number/styleNumberListQuery',
    data
  })
}
// 打开页面,默认获取所有的获取数据(库存查询的接口)
export const getAllInventoryDataApi = (params) => {
  return axios({
    method: 'GET',
    url: '/input-out-save-repertory-one/getRepertoryList',
    params
  })
}

// 导出excel的接口，后端导出
export const export_excel_dataApi = (params) => {
  return axios({
    method: 'GET',
    url: '/stock',
    params
  })
}

// // 判断是true还是false才去导出接口
// export const isBoolean_isExport_excel = params => {
//   return axios({
//     method: 'GET',
//     url: '/checkStockExport',
//     params
//   })
// }
